using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using DevComponents.DotNetBar;
using BussinessEntity;

namespace PresentationLayer
{
    public partial class frmReceiptDetailPrint : DevComponents.DotNetBar.OfficeForm
    {
        public Receipt Receipt { get; set; }
        public frmReceiptDetailPrint(Receipt Receipt)
        {
            InitializeComponent();
            this.Receipt = Receipt;
        }

        private void frmReceiptDetailPrint_Load(object sender, EventArgs e)
        {
            receiptBindingSource.DataSource = Receipt;
            listDetailsBindingSource.DataSource = Receipt.ListDetails;
            this.reportViewer1.RefreshReport();
        }
    }
}